package com.zyong.design.pattern.bridge.case3;

/**
 * 蛋糕
 * @program: zyong-design-pattern
 * @ClassName: Cake
 * @author: zyong
 * @create: 2024-04-06 23:44
 */
public class Cake extends AbstractFood {
    public Cake(Fruit fruit) {
        super(fruit);
    }

    @Override
    protected void add() {
        fruit.beAdd("蛋糕");
    }
}
